<?php if (!isset($v_sval)) exit; ?>
<?php
$v_offset = (isset($_REQUEST["hdn_offset"])) ? $_REQUEST["hdn_offset"] : 0;
$v_num_row = (isset($_REQUEST["hdn_num_row"])) ? $_REQUEST["hdn_num_row"] : SYS_ITEMS_PER_PAGE;

$news_id = (isset($_REQUEST["hdn_news_id"])) ? $_REQUEST["hdn_news_id"] : 0;
$news_content = '';
$news_time = '';
$v_dsp_news_list = '';
if ( $news_id && getOwnerNews($news_id) == $user_id ){
	$rs = getSingerNews ($news_id);
	if ($arr = mysql_fetch_assoc($rs)){
		$news_time = convertSQLDatetoDate($arr['NEWS_TIME'],true);
		$news_content = $arr['NEWS_CONTENT'];

		$v_dsp_news_list .='
		<div class="diary_element">
			<div class="left diary_time_content w120">
				<span class="diary_date_of_week">'.$arr_day_of_week[date("D",strtotime($news_time))].'</span><br/>
				<span class="diary_day">'.date("d",strtotime($news_time)).'</span>
				<span class="diary_time">'.date("H:i",strtotime($news_time)).'</span>
				<br/>	
				<span class="diary_month_year">'._LB_MONTH.$arr_month[date("M",strtotime($news_time))].' '.date("Y",strtotime($news_time)).'</span>

			</div>
			<p class="diary_content_display">'.$news_content.'</p>
			
			<div class="clear"></div>
		</div>';
	}
}
?>
